//@ sourceURL=RectificationForm.js
RectificationForm = Ext.extend(Ext.Window,
{
    constructor : function(a) {
        Ext.applyIf(this, a);
        this.initUIComponents();
        RectificationForm.superclass.constructor.call(this, {
            layout : "fit",
            id : this.inputFormName,
            items : yearGridFormPanel,
            modal : true,
            bodyStyle : "padding:2px;",
            buttonAlign : "center",
            buttons : yearGridFormButtons,
            title : "添加",
            iconCls : "menu-flowWait",
            width : 620,
            height : 450
        });
    },
    //初始化数据
    initUIComponents : function() {
        createyeargridform({
            operation:this,
            form:{
                saveUrl: __ctxPath+"/relatedparty/saveRectification.do",
                items:[
                       {
                           id : "rectification.id",
                           name : "rectification.id",
                           xtype : "hidden",
                           value : this.id == null ? "": this.id
                       }, {
                           name : "rectification.existingProblemsId",
                           xtype : "hidden",
                           id : "rectification.existingProblemsId",
                           value : this.existingProblemsId == null ? "" : this.existingProblemsId
                       },{
                           layout:"column",
                           bodyStyle:"padding:5px;",
                           items:[{
                          layout:"form",
                          columnWidth:.5,
                          bodyStyle:"padding:5px;",
                          border:false,
//                        True表示为显示出面板body元素的边框，false则隐藏
                          items:[{
                              xtype:"datefield",
                              fieldLabel:"整改时间",
                              id:"rectification.changeDate",
                              name:"rectification.changeDate",
                              format: 'Y-m-d',
                              width : 146,
                              allowBlank:true
                              
                          }]
                      },{
                          layout:"form",
                          columnWidth:.5,
                          bodyStyle:"padding:5px;",
                          border:false,
//                        True表示为显示出面板body元素的边框，false则隐藏
                          defaultType:"textfield",
                          items:[{
                              fieldLabel:"整改人/部门",
                              id:"rectification.department",
                              name:"rectification.department",
                             // maxLength:80,
                              allowBlank:true
                              
                          }]
                      }]
                       },{
                   layout:"column",
                   bodyStyle:"padding:5px;",
                   items:[{
                       columnWidth:1.,//第一列 
                       layout:"form", 
                       bodyStyle:"padding:5px;",
                       items:[{ 
                           xtype:"textarea", 
                           fieldLabel: '整改措施', 
                           name: 'rectification.changeMeasures', 
                           width:448 
                           }] 
                  },{
                       columnWidth:1.,//第一列 
                       layout:"form", 
                       bodyStyle:"padding:5px;",
                       items:[{ 
                           xtype:"textarea", 
                           fieldLabel: '整改结论', 
                           name: 'rectification.changeConclusion', 
                           width:448 
                           }] 
                  },{
                      columnWidth:1.,//第一列 
                      layout:"form", 
                      bodyStyle:"padding:5px;",
                      items:[{ 
                          xtype:"textarea", 
                          fieldLabel: '备注', 
                          name: 'rectification.remark', 
                          width:448 
                          }] 
                 }]
               }]
            },
        loadData:{
            getUrl:__ctxPath +"/relatedparty/getRectification.do",
            preName : "rectification"
        },
        isShow:this.isShow
    });
}
});
